import request from '@/utils/request'

export function getNewByPage(query) {
  return request({
    url: '/mall/api/distributor/goods/new',
    method: 'get',
    params: query
  })
}

export function downloadNew() {
  return request({
    url: '/mall/api/distributor/goods/new/download',
    method: 'post',
    responseType: 'blob',
    timeout: 30000
  })
}
